package com.sdyc.ndmp.cls.engine;

import com.sdyc.ndmp.cls.dtd.InputPath;

import java.util.List;

/**
 * 语义分析预测模型接口
 * Created by sssd on 2017/7/18.
 */
public interface PredictModel {
    /**
     * 初始化预测模型
     * @param inputPath   词典或预料存放路径
     * @throws Exception
     */
    public void init(InputPath inputPath)throws Exception;

    /**
     * 对语句进行预测
     * @param sentence  待预测语句
     * @return     预测结果
     * @throws Exception
     */
    public List predict(String sentence) throws Exception;
}
